Object[].ExistByRefSorted (gb)
Function ExistByRefSorted ( Value As Object ) As Boolean
Sinds 3.16
Return the position of the first occurrence of a specific object in the array.
If
Start is specified, then the search begins at the
Start position. By default the entire array is searched.
If
Value cannot be found,
-1
is returned.
Contrary to
Find, this function always compare objects by identity
(i.e. by using their memory address). The
_compare special method is not used.
This method only works if the array is sorted.
But it is faster than the
ExistByRef method as it uses a binary search algorithm.